package com.reran.demo;

/**
 * @description:
 * @author: WangSiTeng
 * @date: 2021/11/27
 */
public class ThreadDemo1 extends Thread {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        ThreadDemo1 threadDemo = new ThreadDemo1();
        threadDemo.start();

        System.out.println("Exiting main Thread: "+Thread.currentThread().getName());
    }
}
